define(function(require,exports,module){
	require("jquery");
	require.async(['/plugins/layer-v1.8.4/skin/layer.css','/plugins/layer-v1.8.4/layer.min'],function(){
		function avatar_success(){
			 $.layer({
				    type: 1,
				    closeBtn: [0,true],
		         		    title: "&nbsp;",
				    area: ['384px', '186px'],
				    border: [1, 1, '#cecfd0'],
				    time:3,
				    page: {
				        html: '<div class="tipsWrap w384"><div class="tipsTxt"><i class="iconfont okIco">&#xe63d;</i><span>头像修改成功</span></div><div class="tipsMsg">3秒后窗口自动关闭</div></div>'
				    },
				    close: function(index){
				    	window.location.reload();
				    },
				    end: function(){
				    	window.location.reload();
				    }
			});
		}
		exports.avatar_success = avatar_success;
	})
	
})
